// PanpanDoor类继承Door类并实现IDoor接口
public class PanpanDoor extends Door implements IDoor {
    // 实现防盗功能
    public void theftproof() {
        System.out.println("My door can proof theft");
    }

    // 实现防水功能
    public void waterproof() {
        System.out.println("My door can proof water");
    }

    // 实现防弹功能
    public void bulletproof() {
        System.out.println("My door can proof bullet");
    }

    // 实现防火功能
    public void fireProof() {
        System.out.println("My door can proof fire");
    }

    public static void main(String[] args) {
        PanpanDoor door = new PanpanDoor();

        // 调用6个方法
        door.openDoor();
        door.closeDoor();
        door.theftproof();
        door.waterproof();
        door.bulletproof();
        door.fireProof();
    }
    }


